package com.luotat.employeeclient.client;

import com.luotat.pojo.employee.Employee;
import com.luotat.pojo.result.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class EmployeeServiceFallback implements EmployeeServiceImpl
{
    @Override
    public Result insert(Employee employee)
    {
        log.info("insert callback");
        return Result.error("insert callback");
    }

    @Override
    public Result delete(Integer id)
    {
        log.info("delete callback");
        return Result.error("delete callback");
    }

    @Override
    public Result update(Employee employee)
    {
        log.info("update callback");
        return Result.error("update callback");
    }

    @Override
    public Result getById(Integer id)
    {
        log.info("getById callback");
        return Result.error("getById callback");
    }

    @Override
    public Result getAll()
    {
        log.info("getAll callback");
        return Result.error("getAll callback");
    }
}